<tagLib name="html" />
<include file="Public:header"/>
	<include file="Public:menu"/>
	<div id="right">
		<div class="app_right_menu">
			<div class="arm_2">
				<a href="__URL__">收件箱</a>
			</div>
			<div class="arm_2">
				<a href="__URL__/sent">发件箱</a>					
			</div>
			<div class="arm_2">
				<a href="__URL__/notify">通知	</a>				
			</div>
			<div class="arm_1 strong">
				读私信					
			</div>
			<div class="arm_2">
				<a href="__URL__/write">写私信	</a>				
			</div>
		</div>
		<div class="app_right_count">
			
		</div>
		<div class="messagebody">
			<p>
				<h4>{$message['title']}</h4>
			</p>
			<table>
				<tbody>
					<tr>
						<td rowspan="2" class="read td">
						</td>
						<td rowspan="2" class="face td">
							<img src="__PUBLIC__/Uploads/face/small/{$userInfo['faceimg']}" width="60px" height="60px"/>
						</td>
						<td class="time">
							<a href="__APP__/home/{$message['postid']}">{$message['username']}</a>
						</td>
						<td rowspan="2" class="title td">
							{$message['content']}
						</td>
					</tr>
					<tr class="tr">
						<td class="time td">
							{$message['regtime']|toDate}
						</td>
					</tr>
					
					<volist name="revert" id="r">
					<tr>
						<td rowspan="2" class="read td">
						</td>
						<td rowspan="2" class="face td">
							<img src="__PUBLIC__/Uploads/face/small/{$r['faceimg']}" width="60px" height="60px"/>
						</td>
						<td class="time">
							<a href="__APP__/home/{$r['postid']}">{$r['username']}</a>
						</td>
						<td rowspan="2" class="title td">
							{$r['content']}
						</td>
					</tr>
					<tr class="tr">
						<td class="time td">
							{$r['regtime']|toDate}
						</td>
					</tr>
					</volist>
				</tbody>
			</table>
			<p>
				<form action="__URL__/revert" method="POST">			
				<p>
					<textarea name="content" rows="6" cols="30"></textarea>
				</p>
				<p>
					<label>&nbsp;</label><input type="submit" value="回复"/>
					<input type="reset" value="重写"/>
					<input type="hidden" name="userid" value="<?php ($userInfo['id'] == $message['postid']) ? print $message['userid'] : print $message['postid'] ?>"/>
					<input type="hidden" name="title" value="{$message['title']}"/>
					<input type="hidden" name="parentid" value="{$message:id}"/>
				</p>
			</form>
			</p>
		</div>
	</div>
<include file="Public:footer"/>